import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_app/wx/components/message_card.dart';
import 'package:flutter_app/wx/mock_data.dart';

class MessagePage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _MessagePageState();
}

class _MessagePageState extends State<MessagePage> {
  @override
  Widget build(BuildContext context) {
    return ListView.separated(
      itemCount: messageList.length,
      itemBuilder: (context, index) {
        return MessageCard(data: messageList[index]);
      },
      separatorBuilder: (context, index) {
        return Divider(
          height: 0.5,
          indent: 75,
          color: Color(0xFFDDDDDD),
        );
      },
    );
  }
}
